unit FormAdicionaDespesaUnit;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, Vcl.DBGrids, Vcl.StdCtrls,
  Vcl.Mask, Vcl.DBCtrls, Vcl.Buttons, Vcl.ExtCtrls;

type
  TFormAdicionaDespesa = class(TForm)
    Panel3: TPanel;
    BitBtnSair: TBitBtn;
    BitBtnSalvar: TBitBtn;
    BitBtnEditar: TBitBtn;
    BitBtnExcluir: TBitBtn;
    Panel1: TPanel;
    Label1: TLabel;
    Panel2: TPanel;
    DBGrid1: TDBGrid;
    RadioGroup1: TRadioGroup;
    CheckBoxLancamento: TCheckBox;
    MaskEditCodigo: TMaskEdit;
    Label2: TLabel;
    EditPlanoContas: TEdit;
    procedure RadioGroup1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormAdicionaDespesa: TFormAdicionaDespesa;

implementation

{$R *.dfm}

procedure TFormAdicionaDespesa.RadioGroup1Click(Sender: TObject);
begin
  case RadioGroup1.ItemIndex of
  0:
  begin
    MaskEditCodigo.EditMask := '!999;1;_';
  end;
  1:
  begin
    MaskEditCodigo.EditMask := '!999.999;1;_';
  end;
  2:
  begin
    MaskEditCodigo.EditMask := '!999.999.999;1;_';
  end;
  3:
  begin
    MaskEditCodigo.EditMask := '!999.999.999.999;1;_';
  end;
  end;
end;

end.
